package de.zefania.api.impl;


import java.io.File;
import java.io.IOException;

import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;

import org.w3c.dom.Document;
import org.xml.sax.SAXException;

public final class XmlTools {
	public static Document getDocumentFromFile(final File f) throws SAXException, IOException, ParserConfigurationException {
		DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();         
		Document bibleDoc = factory.newDocumentBuilder().parse(f);
		return bibleDoc;
	}
	
	private XmlTools() {}
}
